package com.ctv.my.customview.BaiajCustomView.adapters;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.ctv.my.customview.BaiajCustomView.fragments.ThridBezierFragment;

import java.util.List;

/**
 * Created by baiaj on 2017/8/18.
 */

public class BezierFragmentAdapter extends FragmentPagerAdapter {

    private List<ThridBezierFragment> fragments;

    public BezierFragmentAdapter(FragmentManager fm, List<ThridBezierFragment> mFragments) {
        super(fm);
        fragments = mFragments;
    }

    @Override
    public Fragment getItem(int position) {
        return fragments.get(position);
    }

    @Override
    public int getCount() {
        return fragments.size();
    }
}
